package com.kuqi.http;

import android.os.Handler;

public class HttpCmd {

    //命令发起者handle
    private Handler master;
    //请求的json参数内容
    private String requestJson;
    //请求的发送目标target
    private String targetUrl;
    //命令标识符
    private int key;

    public HttpCmd(){

    }

    public HttpCmd(Handler master, String requestJson, String targetUrl, int key) {
        this.master = master;
        this.requestJson = requestJson;
        this.targetUrl = targetUrl;
        this.key = key;
    }

    public void setKey(int key) {
        this.key = key;
    }

    public int getKey() {
        return key;
    }

    public void setMaster(Handler master) {
        this.master = master;
    }

    public void setRequestJson(String requestJson) {
        this.requestJson = requestJson;
    }

    public void setTargetUrl(String targetUrl) {
        this.targetUrl = targetUrl;
    }

    public Handler getMaster() {
        return master;
    }

    public String getRequestJson() {
        return requestJson;
    }

    public String getTargetUrl() {
        return targetUrl;
    }
}
